package com.taobao.action.menu;

import com.taobao.action.CommonAction;
import com.taobao.pojo.Config;
import com.taobao.pojo.UserInfo;
import com.taobao.ui.SmallerUI;
import com.taobao.ui.widget.UserInfoWidget;

public class OpenSmallerUIAction extends CommonAction {

	@Override
	public void doAction(Object uiObject) {
		UserInfoWidget userInfoWidget = (UserInfoWidget) Config.uiContext.get(UserInfoWidget.ID);
		SmallerUI smallerUI = new SmallerUI(userInfoWidget.getShell(), userInfoWidget.getPojo(UserInfo.class));
		smallerUI.setBlockOnOpen(true);
		smallerUI.open();
	}
}
